package com.bestcem.xm.survey.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @TableName ds_survey_condition
 */
@TableName(value ="ds_survey_condition")
@Data
@EqualsAndHashCode(callSuper = true)
public class SurveyCondition extends BaseEntity2 {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * 问卷ID
     */
    @TableField(value = "project_id")
    private String projectId;

    /**
     * 条件名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 序列号（从0到4）
     */
    @TableField(value = "seq")
    private Integer seq;

    /**
     * 计算规则
     */
    @TableField(value = "rule")
    private Integer rule;

    /**
     * 计算问题列表
     */
    @TableField(value = "qlist")
    private String qlist;

    /**
     * 权重列表，和qlist一一对应
     */
    @TableField(value = "weights")
    private String weights;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}